import request from '@/utils/axios'
var qs = require('qs');

export function login(params) {
  return request({
    url: '/user/login',
    method: 'post',
    data: qs.stringify(params),
  });
}
export function LogOut(params) {
  return request({
    url: '/user/logOut',
    method: 'get',
    params: params
  })
}
export function getUserInfo(params) {
  return request({
    url: '/user/info',
    method: 'post',
    data:qs.stringify(params),
    dataType: 'JSONP'
  })
}
// 获取游戏列表及ID
export function getgameName(params) {
  return request({
    url: '/gameList',
    method: 'get',
    params: params
  })
}

